package org.jeecg.modules.zcgl.vo.statistical;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.CommonConstant;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.math.BigDecimal;

/**
 * @author 尹涛 * @version V1.0.0
 * @projectName kangxiang-parent
 * @title DepositStatisticalVo
 * @package org.jeecg.modules.zcgl.vo.statistical
 * @description 保证金统计
 * @date 2021-06-01
 */
@Data
public class DepositStatisticalVo {

    @Excel(name = "客户名称", width = 15, dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ';', `name`, phone )", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ' ', `name`, phone )", dicCode = "id")
    @ApiModelProperty(value = "客户名称")
    private String customerId;

    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;

    @Excel(name = "身份证号/信用代码", width = 15)
    @ApiModelProperty(value = "身份证号/信用代码")
    private String code;

    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String contractNum;

    @Excel(name = "出租方名称", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id", dicKey ="parent_id='" + CommonConstant.BASE_DEPART_ID + "'")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "出租方名称")
    private String rentCompanyId;

    @Excel(name = "管理单位", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id", dicKey ="parent_id='" + CommonConstant.BASE_DEPART_ID + "'")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    private String companyId;

    @Excel(name = "资产名称", width = 15, dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id")
    @ApiModelProperty(value = "资产名称")
    private String assetId;

    @Excel(name = "资产明细", width = 15, dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
    @ApiModelProperty(value = "资产明细")
    private String assetSubIds;

    @Excel(name = "在库保证金", width = 15)
    @ApiModelProperty(value = "在库保证金")
    private BigDecimal cashDeposit;

    @Excel(name = "已退保证金", width = 15)
    @ApiModelProperty(value = "已退保证金")
    private BigDecimal refundedDeposit;

    @Excel(name = "已退保证金", width = 15)
    @ApiModelProperty(value = "已退保证金")
    private BigDecimal retiredRent;


    //查询参数
    private String selections;
}
